{template 'nav_new.inc'}
<form class="form-inline" role="form" action="{php echo $this->createMobileUrl('list2',array(),true)}" method="post">
    <div class="am-form-group am-form-icon">
        <input type="text" size="20px" name="keyword" style="width: 96%;margin:10px auto;padding:10px 30px 10px 10px!important;" class="am-form-field am-radius" placeholder="请输入你想搜索关键字">
        <i class="am-icon-search" style="left: inherit;;right:.625em"></i>
    </div>
</form>
<div data-am-widget="slider" class="am-slider am-slider-c3" data-am-slider='{&quot;controlNav&quot;:false}'>
    <ul class="am-slides">
        {loop $siders $key $sider}
        <li style="height: 180px; overflow: hidden;">
            <a href="{$sider[1]}"><img src="{$_W['attachurl']}{$sider[0]}">
            <div class="am-slider-desc" style="background: rgba(0,0,0,0);right: inherit;">
                <div class="am-slider-counter">
                    <span class="am-active">{php echo ($key+1)}</span>/{php echo count($siders)}</div> <!--标题内容--></div>
            </a>
        </li>
        {/loop}
    </ul>
</div>
<div class="am-btn am-btn-block am-btn-danger am-text-left am-icon-rss-square" style="padding-left: 10px;">&nbsp;&nbsp;最新二手</div>
<style>
    .am-list{margin: 0;}
    .am-list>li{border: none;}
    .box{padding: 10px;}
    .box a{float: left;}
    .caption{float: left; margin-left: 4px; width: 65%;}
    .caption p{padding: 0 5px; margin:0;height: 22px;overflow: hidden;}
    .caption strong{font-size: 20px; color:#ff4400;}

    .caption span{float: right;margin-top: 5px; color:#9D8E8E; font-size: 14px;}
</style>
<ul class="am-list">
    {loop $new $key $row}
    <li>
        <div class="box">
            <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}" style="width: 30%;">
                <img src="{$_W['attachurl']}{$row['thumb1']}" alt="{$row['title']}" class="img-rounded" style="width:100%;height:54px;">
            </a>
            <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}" style="float: none; color: #333;">
                <div class="caption">
                    <p>{$row['title']}</p>
                    <strong>￥{$row['price']}</strong>
                    <span>{$row['createtime']}前</span>
                    <div style="clear:both;"></div>
                </div>
            </a>
            <div style="clear:both;"></div>
        </div>
    </li>
    {/loop}
</ul>

<div class="am-btn am-btn-block am-btn-primary am-text-left am-icon-rss-square" style="padding-left: 10px;">&nbsp;&nbsp;全部分类</div>
<style>
    .item{border-bottom: 2px solid #e5e6e7;}
    .hr{height: 10px; background: #efeff4;}

    .title{ height: 45px; line-height: 45px; border-bottom: 1px solid #e7e7e7; background: #fff; padding: 5px 20px;}
    .title span{ font-size: 18px;}
    .am-avg-sm-3 li{ text-align: center;}
    .am-avg-sm-3 li a{display: block; padding: 10px;}
    .am-avg-sm-3 li a:active{background: #eee; }
</style>
{loop $categorys $category}
<div class='item'>
    <div class="title">
        <span>{$category['name']}</span>
    </div>
    <ul class="am-avg-sm-3">
        {loop $category['two'] $c}
        <li><a href="{php echo $this->createMobileUrl('list2',array('pcate' => $c['id']))}" style="color:#333;">{$c['name']}</a></li>
        {/loop}
    </ul>
</div>
<div class="hr"></div>
{/loop}

<!--<div class="container" style="margin-top:10px">
<div class="row">
<div class="col-xs-12">
  {if $keyword}
    <ol class="breadcrumb alert alert-success" >
        <li>搜索结果</li>
    </ol>
  {else}
        &lt;!&ndash;<ul class="nav nav-pills" role="tablist">
          <li role="presentation"><a href="{php echo $this->createMobileUrl('list')}" class="btn btn-danger">全部</a></li>
        {loop $categorys $category}
            <li role="presentation"><a href="{php echo $this->createMobileUrl('list',array('pcate' => $category['id']))}" class="btn btn-primary">{$category['name']}</a></li>
        {/loop}
        </ul>&ndash;&gt;
    <style>
        .nav_list{width: 100%; padding: 0;}
        .nav_list li{ float: left;  list-style: none; width: 80px; text-align: center; margin-bottom: 5px;}
        .nav_list li a{width:60px; line-height:80px;height:60px; margin-left: 10px; display:block; text-align:center;color: #fff;background: #e9e9e9; border-radius: 50px;}
    </style>
    <ul class="nav_list">
        {loop $categorys $category}
        <li>
            <a href="{php echo $this->createMobileUrl('list',array('pcate' => $category['id']))}" class="am-icon-btn am-danger am-icon-twitter"></a>
            <span>{$category['name']}</span>
        </li>
        {/loop}
        <div style="clear: both"></div>
    </ul>
{/if}
</div>
   </div>
</div>
<div class="container" style="margin-top:10px">
  &lt;!&ndash; 图文 &ndash;&gt;
  &lt;!&ndash;<div class="row">
  {loop $list $key $row}
	  <div class="col-xs-6">
	     <div class="thumbnail">
         <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}">
           <img src="{$_W['attachurl']}{$row['thumb1']}" alt="{$row['title']}" class="img-rounded" style="width:140px;height:95px">
         </a>
         <div class="caption">
           <h5>{$row['title']}</h5>
           <span><font color="red">￥{$row['price']}</font></span>
         </div>
         </div>
	   </div>
   {/loop}
   </div>&ndash;&gt;
    <style>
        .box{border:1px solid #ccc;}
        .caption p{padding: 0 5px; margin:0;margin-top: 10px;height: 22px;overflow: hidden;}
        .caption strong{font-size: 20px; color:#ff4400;}

        .caption span{float: right;margin-top: 5px; color:#9D8E8E;}
    </style>
    <ul class="am-avg-sm-2 am-thumbnails" style="margin: 0;">
        {loop $list $key $row}
        <li>
            <div class="box">
                <a href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}">
                    <img src="{$_W['attachurl']}{$row['thumb1']}" alt="{$row['title']}" class="img-rounded" style="width:100%;height:207px;">
                </a>
                <div class="caption">
                    <p>{$row['title']}</p>
                    <strong>￥{$row['price']}</strong>
                    <span>20分钟前</span>
                    <div style="clear:both;"></div>
                </div>
            </div>
        </li>
        {/loop}
    </ul>
   
   &lt;!&ndash; <div class="row">
   <div class="col-xs-12">
	      {loop $list $key $row}
	      {if $key > 3}
	      <div class="panel panel-default">
	        <div class="panel-heading" role="tab" id="zhao_{$key}">
	          <h4 class="panel-title">
	            <a data-toggle="collapse" data-parent="#accordion" href="#collapse{$key}" aria-expanded="true" aria-controls="collapse{$key}">
	             {$row['title']}
	            </a>
	            <a class="btn btn-default" href="{php echo $this->createMobileUrl('detail', array('name' => 'detail', 'id' => $row['id'], 'weid' => $_W['weid']))}">查看</a>
	          </h4>
	        </div>
	        <div id="collapse{$key}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="zhao_{$key}">
	          <div class="panel-body">
	         ¥{$row['price']}  / 
	         {if $row['rolex'] == 1}    9.9成新
	         {elseif $row['rolex'] == 2}9.5成新
	         {elseif $row['rolex'] == 3}9成新
	         {elseif $row['rolex'] == 4}8成新
	         {elseif $row['rolex'] == 5}7成新
	         {elseif $row['rolex'] == 6}6成新
	         {/if} / 
	         {$row['realname']} {if $row['sex'] == 0}先生{else}女士{/if} / 
	         {php echo date('Y-m-d', $row['createtime'])}
	         </div>
	        </div>
	      </div>
	      {/if}
	     {/loop}
  </div>
  </div> &ndash;&gt;
</div>
<script>
sharedata = {
    'title' : "二手市场 — {$_W['account']['name']}",
    'desc' : "{$_W['account']['name']} — 二手市场 — 物品买卖，跳蚤市场。",
    'link' : '',
    'imgUrl' : "{$_W['siteroot']}addons/secondmarket/template/static/logo.jpg"
}
</script>-->

<footer data-am-widget="footer" class="am-footer am-footer-default" data-am-footer="{  }" style="padding: 0;">
    <div class="am-footer-miscs ">
        <p>由 <a href="#" title="{$_W['account']['name']}" target="_blank" class="">{$_W['account']['name']}</a> 提供技术支持</p>
        <!--<p>CopyRight©2015 ThinkIdea Inc.</p>-->
    </div>
</footer>